// Enable the Lightbend Telemetry (Cinnamon) sbt plugin
lazy val helloAkka = project in file(".") enablePlugins Cinnamon

// Add the Cinnamon Agent for run and test
cinnamon in run := true
cinnamon in test := true

name := "akka-cluster-monitor"

version := "1.0"

scalaVersion := "2.11.11"

lazy val akkaVersion = "2.4.17"
lazy val akkaHttpVersion = "10.0.9"
lazy val scalatestVersion = "3.0.4"

scalacOptions ++= Seq("-deprecation","-unchecked","-feature")

libraryDependencies ++= Seq(
  // Use Coda Hale Metrics and Akka instrumentation
  Cinnamon.library.cinnamonCHMetrics,
  Cinnamon.library.cinnamonAkka,
  Cinnamon.library.cinnamonCHMetricsHttpReporter,
  Cinnamon.library.cinnamonOpenTracingZipkin,
  Cinnamon.library.cinnamonOpenTracingJaeger,
  "com.typesafe.akka" %% "akka-actor" % akkaVersion,
  "com.typesafe.akka" %% "akka-remote" % akkaVersion,
  "com.typesafe.akka" %% "akka-testkit" % akkaVersion,
  "com.typesafe.akka" %% "akka-cluster" % akkaVersion,
  "com.typesafe.akka" %% "akka-cluster-metrics" % akkaVersion,
  "com.typesafe.akka" %% "akka-cluster-tools" % akkaVersion,
  "com.typesafe.akka" %% "akka-multi-node-testkit" % akkaVersion,
  "com.typesafe.akka" %% "akka-http" % akkaHttpVersion,
  "com.typesafe.akka" %% "akka-http-spray-json" % akkaHttpVersion,
  "org.scalatest" %% "scalatest" % scalatestVersion % "test",
  "junit" % "junit" % "4.12" % "test",
  "com.novocode" % "junit-interface" % "0.11" % "test",
  "ch.qos.logback" % "logback-classic" % "1.1.3"
)

testOptions += Tests.Argument(TestFrameworks.JUnit, "-v")